import request from '@/utils/request'
import qs from "qs";
// 查询发布频率预警列表
export function listFrequencyWarningSet(data) {
  console.log(data,'77777776666666666');
  return request({
    url: "/system/frequencyWarningSet/detail",
    method: "POST",
    data: data,
  });
}

// 查询发布频率预警详细
export function getFrequencyWarningSet(id) {
  return request({
    url: '/system/frequencyWarningSet/' + id,
    method: 'get'
  })
}

// 新增发布频率预警
export function addFrequencyWarningSet(data) {
  return request({
    url: "/system/frequencyWarningSet",
    method: "post",
    // data:data
    data: qs.stringify(data),
    headers: {
      "content-type": "application/x-www-form-urlencoded",
    },
  });
}

// 修改发布频率预警
export function updateFrequencyWarningSet(data) {
  return request({
    url: "/system/frequencyWarningSet",
    method: "put",
    // data: data,
    data: qs.stringify(data),
    headers: {
      "content-type": "application/x-www-form-urlencoded",
    },
  });
}

// 删除发布频率预警
export function delFrequencyWarningSet(id) {
  return request({
    url: '/system/frequencyWarningSet/' + id,
    method: 'delete'
  })
}
